export const validatePassword = () => {
  return (rule, value, callback) => {
    if (value.length < 5) {
      callback(new Error("密码不能少于5位"));
    } else if (value.length > 10) {
      callback(new Error("密码不能大于10位"));
    } else {
      callback();
    }
  };
};
